package com.bruce.demo1.principles.demo5.lkp.demo1;

/**
 * @PROJECT_NAME design_patterns
 * @DESCRIPTION 测试类
 * @AUTHOR CNBruceLee
 * @DATE 2021/6/28 18:38
 */
public class Test {
    public static void main(String[] args) {
        //创建经纪人类
        Agent agent = new Agent();

        //创建明星对象
        Star star = new Star("Bruce");
        agent.setStar(star);

        //创建粉丝对象
        Fans fans = new Fans("小李");
        agent.setFans(fans);

        //创建媒体公司对象
        Company company = new Company("rizhaoSteel");
        agent.setCompany(company);

        //进行粉丝见面
        agent.meeting();
        //和媒体公司洽谈业务
        agent.business();

    }
}
